package com.lqq.designPattern.design_principle.迪米特法制;

//测试
public class Client {
    public static void main(String[] args) {
        //经纪人
        Agent agent = new Agent();
        //明星
        Star star = new Star("迪丽热巴");
        //媒体公司
        Company company = new Company("七七传播集团");
        //粉丝
        Fans fans = new Fans("677");

        //经纪人设置这些属性
        agent.setStar(star);
        agent.setCompany(company);
        agent.setFans(fans);
        //安排见面会
        agent.meeting();

        //安排洽谈
        agent.business();
    }
}
